<?php

use yii\helpers\Html;
use common\models\articles\Articles;
    $tongzhi = Articles::find()->where(['category_id'=>18])->asArray()->limit(10)->all();
    $hangye = Articles::find()->where(['category_id'=>28])->asArray()->limit(10)->all();
    $xinwen = Articles::find()->where(['category_id'=>14])->asArray()->limit(10)->all();

/* @var $this yii\web\View */
/* @var $model common\models\meeting\Meetingenroll */
$controllerID = Yii::$app->controller->id;
$actionID = Yii::$app->controller->action->id;

$this->title = Yii::t('app', '填写信息');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', '填写信息'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<style>
        html, body {background: #fff;}
        .content_panel { margin: 0;}
        .form_Pontent ul li label {width: auto;min-width: 0 !important;}
        .form_Pontent ul li input {width: 100%;}
        .form_Pontent ul li select {width: 100%;min-width: 280px;}
        .form_Pontent ul li input[type='button'].button {text-indent: 0;font-size: 13px;width: 130px;height: 40px;background: #242424;color: #fff; display: inline-block;line-height: 40px;margin: 0;}
        .form_Pontent ul li input[type='button'].button:hover {background: #333;color: #e3e3e3;}
        .form_Pontent ul li input[type='radio'] {margin-left: 0;}
        font.prompt {width: 26%;}
        .rdo_label {min-width: 105px !important;text-indent: 0px !important;}
        .from-buju {display: inline-block;width: 73%;float: right;text-align: right;}
        li {list-style-type: none;}
        .selectedLi {background-color: #c5ebff !important;}
        .notranslate {clear: both;}
        .handleArea {width: 330px;position: absolute;height: 80px;}
        .desc-left {float: left;width: 70px;text-align: right; padding-right: 8px;}
        #divFormContent {padding-left: 30px;}
        .cssAst {display: none; color: red;}
        .cssAst-show {color: red;}
        .labelAbovePosition {letter-spacing: 3px;margin: 0;width: 25%;text-align: left;display: inline-block;vertical-align:top;}
        .labelLeftPosition {letter-spacing: 3px;min-width: 25%;float: left;text-align: left;line-height:30px;}
        .cDivFormRow2 {width: 65% !important;display: inline-block;}
        .cDivFormRowLeft {/*width: 70%;*/padding-left: 25%;}
        .cDivFormPage {    width: 90%;    margin: 0 auto;    text-align: center;}
        .choice {margin-left: 10px;display: inline; line-height: 23px;}
        #divFormContent {width: 100%;}
        #divFormContent > div {width: 100%;display: table;margin-top: 10px;margin: auto;}
        .k-invalid-msg {float: right;}
        input[datatype='text'] {width: 100%;}
        input[datatype='password'] {width: 100%;}
        input[type='radio'] {float: none !important;}
        .cDivFormPage input[type='button'] {border: none;text-indent: 0;margin: 15px 15px !important;}
        .k-button {padding: 0.8em 3.5em !important;background-image: none !important;margin-right: 5px !important;border-radius: 0px !important;border: outset 2px rgb(221, 221, 221) !important; font-size: 14px !important; line-height: 20px !important;}
        #province {width: 100%;}
        #city {width: 100%;}
        span[data-role=Tooltip] { background-image: url('/Content/images/icons/info.png');background-repeat: no-repeat; margin-right: 5px; background-size: auto; width: 10px; height: 10px;}
        input[datatype=nextpage] {margin-left: 30px;}
        input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {-webkit-appearance: none !important;}
        input[type="number"] { -moz-appearance: textfield;}
        input[type="button"], button {background-color: black; color: white;}
        #btnReturnConfirm, #btnNextStep, #btnEdit { padding: 0;margin: 0;}
        #registerFail > div {font-family: Microsoft YaHei !important; margin-bottom: 10px; font-size: 20px; }
        .k-widget.k-tooltip.k-tooltip-validation.k-invalid-msg {float: left; margin: 0 0 10px 24.8%;}
        .form_Pontent ul.iframe_ul{    margin-left: 75px;}
        .form_Pontent ul li { padding: 0 0 10px 0; min-height: 0;    line-height: initial;    display: table;margin:0 auto;}
        .form_Pontent ul li.lierr { padding: 0;    margin: 0 auto;    display: table;    width: 75%;    float: none; }
        .form_Pontent ul li input[type='file'] {height: 23px;line-height: 0;text-indent: 0; width: auto; margin: 6px 0;}
        .k-combobox {width: 100%; border-radius: 0; box-shadow: none;}
        .k-dropdown-wrap .k-input { height: 1.6em; padding: .25em 0;}
        .form_Pontent ul li input[type='checkbox'] { display: inline-block; }
        .ckb_label { margin-top: 4px; text-indent: 0 !important;}
        .form_Pontent ul li input[type='radio'] { display: inline-block; }
        .rdo_label { margin-top: 4px; text-indent: 0 !important; }
        .rdo_label span {margin-left: 0px;}
        .k-picker-wrap .k-input {height: 30px;}
        .fieldset {width: 100%;margin: 0 auto;display: inline-block;}
        li.notranslate{    z-index: 100;    width: 75% !important;    margin: 0 auto;    float: none !important;}
        .form_Pontent ul li input[name="FieldEmergencyTelCityCode"]{text-indent: 6px; }
        .form_Pontent textarea {            width: auto;        }
         .k-icon.k-i-arrow-s {            margin-top: 0 !important;        }
        .k-state-default > .k-select {    width: 34px;    background: #fff;    border: 1px solid #ccc;    height: 27px!important;    border-right: 0!important;    border-top: 0!important;    border-bottom: 0!important;}

        .k-datepicker .k-picker-wrap .k-icon {    margin: 3px 2px;}
        .k-picker-wrap .k-input {    height: 27px;}
        .k-picker-wrap.k-state-default {    border: 0;    height: 27px !important;}
        .k-widget.k-datepicker.k-header {    border: 1px solid #c5c5c5;    border-radius: 0;    height: 27px;}

        .describing1 {
            margin-left: 0px;
            margin-top: 5px;
        }

    </style>
                            
 <script>
        var custom_elements_wap = <?= $custom_elements_wap ?>;
 </script>
<div class="design_content" style="margin-bottom: -10px;">
                            <div class="design_banner" style="top: 0">
                                <div class="design_title" style="">
                                    <div class="title_center">
                                        <p class="txt_title"><?= $setinfo['ac_name'] ?></p>
                                        <p class="txt_time"><?= date('Y-m-d H:i:s',$setinfo['start_time']) ?></p>
                                        <p class="txt_place"></p>
                                    </div>
                                </div>
                                <img src="<?= yii::getAlias('@web');?>/images/banner.jpg" style="width: 100%;">
                            </div>
                            <div class="design_menu" style="margin-top: 0">
                                    <a class="menu_color cur" href="http://new.mymova.com/ruoze/Event68321/SelectTicket" target="_self">报名注册</a>
                            </div>

                    <div class="design_form">
                        <div class="form_Pontent">
 <form id="custom_f"  action="<?= yii\helpers\Url::to(['meetingenroll/addcustom']);?>" method='post' >
    <input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
    <input type="hidden" name="ac_id" value="<?= $id ?>" />
    <ul style=" padding: 25px;">
            <li>
                <input id="ddlEventLangList" name="TimeZone" style="display: none;">
                <?php if($setinfo['me_status']==1){ ?>
                <input class="button login" value="用户登录" style="text-align: center; float: right;" onclick="SelectTicketFunc.Login()" type="button">
                <?php } ?>
            </li>
            <li class="page-top"></li>
            <li style="margin-top: 10px;margin-left:80px; margin-bottom:20px;">
                <span onclick="enrollUrlJump('http://new.mymova.com/ruoze/Event68321/SelectTicket?e=1')" class="circular cur" style=" cursor: pointer;">1</span>
                <font class="prompt  ">填写信息</font>
                <span class="circular ">2</span>
                <font class="prompt  ">确认报名</font>
                    <span class="circular ">3</span>
                <b class="b_txt">报名成功</b>
            </li>
        <div class="mainFrom">
        <ul class="formUl">
        </ul>
        </div>
        <li class="liBtn" id="divBtnNewxStep" style="text-align: center;margin: 40px 0 0 0;">
            <input id="btnNextStep" class="button" value="下一步" style="text-align: center; "  type="button">
        </li>
        <li class="page-bottom"></li>
    </ul>
    <input name="regType" id="regType" value="6455" type="hidden">
    <input name="eventID" id="eventID" value="6832" type="hidden">
    <input name="EditState" id="EditState" value="1" type="hidden">
</form> 
                        </div>
                    </div>
                </div>
                    


        <input id="_lang" value="CN" type="hidden">

    <script>
        $(function(){
            $("#btnNextStep").click(function(){
                
            //console.log(checkForm());
                if(checkForm()){
                    $(".loader").find('p').text('表单提交中');
                    $(".loader").show();
                    $("#custom_f").submit();
                }
            })
        })
 </script>
